"""
@author: 江同学呀
@file: err.py
@date: 2023/8/22 19:45
@desc: ES军机处错误类型
"""


class ESPCBaseError(Exception):
    """
    错误基类
    """
    def __init__(self, *args):
        super(ESPCBaseError, self).__init__(*args)
        return


class ESPCInitError(ESPCBaseError):
    """
    初始化错误
    """
    def __init__(self, *args):
        super(ESPCInitError, self).__init__(*args)
        return


class ESPCErrConfigError(ESPCBaseError):
    """
    配置错误
    """
    def __init__(self, *args):
        super(ESPCErrConfigError, self).__init__(*args)
        return


class ESPCIndexUninitError(ESPCBaseError):
    """
    索引未初始化错误
    """
    def __init__(self, *args):
        super(ESPCIndexUninitError, self).__init__(*args)
        return


class ESPCInvalidTypeError(ESPCBaseError):
    """
    非法类型错误
    """
    def __init__(self, *args):
        super(ESPCInvalidTypeError, self).__init__(*args)
        return


class ESPCInvalidValueRangeError(ESPCBaseError):
    """
    非法的值域范围错误
    """
    def __init__(self, *args):
        super(ESPCInvalidValueRangeError, self).__init__(*args)
        return


class ESPCParamsError(ESPCBaseError):
    """
    参数错误
    """
    def __init__(self, *args):
        super(ESPCParamsError, self).__init__(*args)
        return



